<!-- catalog/templates/catalog/author_list.html -->
{% extends "base_generic.html" %}

{% block content %}
  <h1>作者列表</h1>

  {% if author_list %}
  <ul>
    {% for author in author_list %}
      <li>
        <a href="{% url 'author-detail' author.pk %}">{{ author.last_name }}, {{ author.first_name }}</a>
        {% if author.date_of_birth %}
          ({{ author.date_of_birth|date:"Y" }} -
          {% if author.date_of_death %}{{ author.date_of_death|date:"Y" }}{% endif %})
        {% endif %}
      </li>
    {% endfor %}
  </ul>

  {% else %}
    <p>没有找到作者。</p>
  {% endif %}

  {% block pagination %}

  {% endblock %}
{% endblock %}